<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script src="./vue.js"></script>
  <!-- <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script> -->
  <div id="app">
    Vue的模板
    <h3>{{55+11}}</h3>
    <p>{{money}}</p>
    <p>{{name}}</p>
    <!-- <h1>{{msg}}</h1>
    <p>{{money>=99?'真贵':'还行'}}</p>
    <p>{{msg.toUpperCase()}}</p>
    <p>{{name.charAt(0)}}</p> -->
    <div v-html="htmlStr"></div>
    <p>{{person.name}}</p>
  </div>
  <script>
    // 创建实例对象
    const app = new Vue({
      // 容器
      el: '#app',
      // 数据
      data: {
        msg: 'hello word',
        money: 100,
        htmlStr: '<button>按钮</button>',
        person: {
          name: '张三',
          age: 18
        }

      }
    })
    console.log(app)
  </script>
</body>

</html>